package com.atguigu.gulimall.feign;

import com.atguigu.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;

@FeignClient("gulimall-product")
public interface ProductFeignService {


    @RequestMapping("product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);


    @RequestMapping("product/skusaleattrvalue/getSaleAttr/{skuId}")
    public R getSaleAttr(@PathVariable("skuId")Long skuId);


    @PostMapping("product/skuinfo/{skuId}/getPriceBySKuId")
    public R getPriceBySkuId(@PathVariable("skuId")Long skuId);
}
